
import axios from "axios";
// 获取歌单详情
export const getSongSheet = async() => {
    return await axios({
        url:`http://cloud-music.pl-fe.cn/personalized`,
        method: "get",
    })
};
// 获取歌单分类
export const getCatList = async() => {
    return await axios({
        url:`http://cloud-music.pl-fe.cn/playlist/catlist`,
        method:"get"
    })
}
//获取歌曲
export const getSong = async() =>{
    return await axios({
        url:`http://cloud-music.pl-fe.cn/recommend/songs`,
        method:"post",
        data:{
            cookie: localStorage.getItem("cookie"),
        }
    })
}
//获取歌手
export const getSinger = async() => {
    return await axios({
        url:`http://cloud-music.pl-fe.cn/top/artists`,
        method: "get",
    })
};
//获取MV
export const getMvId = async()=>{
    return await axios({
        url:`http://cloud-music.pl-fe.cn/mv/first?limit=8`,
        method:"post",
        data:{
            cookie: localStorage.getItem("cookie"),
        }
    })
}